package com.ly.heart.service;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.IService;
import com.ly.common.core.domain.AjaxResult;
import com.ly.heart.domain.KingBadHandleEntity;
import com.ly.heart.domain.dto.KingBadHandleQueryDto;

/**
 * 金蝶-不良品处理单Service接口
 *
 * @author cxl
 * @date 2024-08-11
 */
public interface IKingBadHandleService extends IService<KingBadHandleEntity> {

    /**
     * 查询不良品处理单列表，带分页
     * @param queryDto
     * @return
     */
    AjaxResult getKingBandHandlePageList(KingBadHandleQueryDto queryDto);

    /**
     * 暂存不良品处理单
     * @param kingBadHandle
     * @return
     */
    AjaxResult draft(KingBadHandleEntity kingBadHandle);

    /**
     * 提交不良品处理单
     * @param kingBadHandle
     * @return
     */
    AjaxResult submit(KingBadHandleEntity kingBadHandle);

    /**
     * 修改不良品处理单
     * @param kingBadHandle
     * @return
     */
    AjaxResult update(KingBadHandleEntity kingBadHandle);

    /**
     * 查询金蝶-不良品处理单
     *
     * @param id 金蝶-不良品处理单ID
     * @return 金蝶-不良品处理单
     */
     KingBadHandleEntity selectKingBadHandleEntityById(String id);

    /**
     * 查询金蝶-不良品处理单列表
     *
     * @param kingBadHandleEntity 金蝶-不良品处理单
     * @return 金蝶-不良品处理单集合
     */
     List<KingBadHandleEntity> selectKingBadHandleEntityList(KingBadHandleEntity kingBadHandleEntity);

    /**
     * 修改金蝶-不良品处理单
     *
     * @param kingBadHandleEntity 金蝶-不良品处理单
     * @return 结果
     */
     int updateKingBadHandleEntity(KingBadHandleEntity kingBadHandleEntity);

    /**
     * 批量删除金蝶-不良品处理单
     *
     * @param ids 需要删除的金蝶-不良品处理单ID
     * @return 结果
     */
     int deleteKingBadHandleEntityByIds(String[] ids);

    /**
     * 删除金蝶-不良品处理单信息
     *
     * @param id 金蝶-不良品处理单ID
     * @return 结果
     */
     int deleteKingBadHandleEntityById(String id);
}
